<?php
namespace app\common\lib;
class Time{

    /*
     * 生成登录的token的有效期
     * @param $string
     * @return string
     */
    public static function getLoginTokenExpriseTime($type)
    {
        if($type == 1){
            $time = 7*24*3600;
        }elseif ($type == 2){
            $time = 30*24*3600;
        }else{
            $time = 24*3600;
        }
        return $time;
    }
}
